<!DOCTYPE html PUBLIC "-//W3C/DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
  <head>
    <title>Administer the Blog</title>
    <%= stylesheet_link_tag "scaffold", "blog", :media => "all" %>
  </head>

  <body id="admin">
    <div id="banner">
      <img src="/images/logo.png"/>
      <%= @page_title || "My Personal Blog" %>
    </div>
    <div id="columns">
      <div id="side">
      	<p>
	      	<%= link_to "Post List", admin_posts_url %><br>
	        <%= link_to "Categories List", admin_categories_url %><br>
	        <%= link_to "Tags List", admin_tags_url %><br>
	        <%= link_to "List Users", admin_users_url %><br>
	        <%= link_to "Add user", new_admin_user_url %>
        </p>
        <p>
        	<%= link_to "Front Page", root_url %><br>
        	<a href="/login/logout"/>Log Out</a>
        </p>
      </div>
      <div id="main">
        <%if flash[:notice] -%>
          <div id="notice"><%= flash[:notice] %></div>
        <%end -%>
        <%= yield :layout %>
      </div>
    </div>
    <div id="banner"><%= @page_title  %></div>
  </body>

</html>
